<?php /* Smarty version 2.6.16, created on 2013-09-08 07:43:16
         compiled from ../templates/admin/emails/editemail.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/admin/emails/editemail.tpl', 26, false),array('modifier', 'trim', '../templates/admin/emails/editemail.tpl', 31, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/js/admin/editemail.js" type="text/javascript"></script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <div class="contain">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="right_contain">
         <div class="heading_box">Edit Email</div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
           <?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         <form name="frmEditEmail" id="frmEditEmail" action="" method="post" enctype="multipart/form-data">
         <input type="hidden" id="page" name="page" value="<?php echo $this->_tpl_vars['page']; ?>
" />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           <div class="form_fieldbox">
              <dl style="color:#F00;">
             Do not change text which is in sqaure brackets. for example - [SITENAME] 
             </dl>
             <dl>
              <dt>Email Type: <span class="error">*</span></dt>
              <dd><input type="text" class="input" name="email_type" id="email_type" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['emailList']['type'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
"/></dd>
              <div class="clear"></div>
             </dl>
              <dl>
              <dt> Email Subject: <span class="error">*</span></dt>
              <dd> <input name="email_subject" id="email_subject"  type="text" class="input" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['emailList']['email_subject'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
"/></dd>
              <div class="clear"></div>
             </dl>
             
             <dl>
              <dt> From Name: <span class="error">*</span></dt>
              <dd> <input name="from_name" id="from_name"  type="text" class="input" value="<?php echo $this->_tpl_vars['emailList']['from_name']; ?>
"/></dd>
              <div class="clear"></div>
             </dl>
             
             <dl>
              <dt> From Email: <span class="error">*</span></dt>
              <dd> <input name="from_email" id="from_email"  type="text" class="input" value="<?php echo $this->_tpl_vars['emailList']['from_email']; ?>
"/></dd>
              <div class="clear"></div>
             </dl>
             
             <dl>
              <dt>Description : <span class="error">*</span></dt>
              <dd><?php 
              	
                $emialObj = new Model_email();
              	$email_id=base64_decode($_GET['id']);
              
			  	$emailArray=$emialObj->getEmailById($email_id);
                
             	include_once(INCLUDE_FCKEDITOR);
                $sBasePath 			= 	$_SERVER[ 'PHP_SELF' ] ;
                $sBasePath			=	FCKEDITOR_BASEPATH;
                $oFCKeditor 		= 	new FCKeditor('email_content');
                $oFCKeditor->BasePath 	= 	$sBasePath;
                $oFCKeditor->Height = '500' ;
                $oFCKeditor->Width = '650' ;
                $oFCKeditor->Value	=	$emailArray['email_content'];						
                $oFCKeditor->Create();
               ?>
              </dd>
              <div class="clear"></div>
             </dl>
             
              <dt>&nbsp;</dt>
            
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="editemail_btn" id="editemail_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=email&page=<?php echo $_GET['page']; ?>
';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>